package com.swust.exam.pojo;

import java.io.Serializable;

public class Questionbank implements Serializable {
    private Integer bankId;

    private String bankInstruction;

    private static final long serialVersionUID = 1L;

    public Integer getBankId() {
        return bankId;
    }

    public void setBankId(Integer bankId) {
        this.bankId = bankId;
    }

    public String getBankInstruction() {
        return bankInstruction;
    }

    public void setBankInstruction(String bankInstruction) {
        this.bankInstruction = bankInstruction == null ? null : bankInstruction.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Questionbank other = (Questionbank) that;
        return (this.getBankId() == null ? other.getBankId() == null : this.getBankId().equals(other.getBankId()))
            && (this.getBankInstruction() == null ? other.getBankInstruction() == null : this.getBankInstruction().equals(other.getBankInstruction()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBankId() == null) ? 0 : getBankId().hashCode());
        result = prime * result + ((getBankInstruction() == null) ? 0 : getBankInstruction().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bankId=").append(bankId);
        sb.append(", bankInstruction=").append(bankInstruction);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}